package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.LegalSensitiveWordCreateValidate;
import com.mdd.admin.validate.LegalSensitiveWordUpdateValidate;
import com.mdd.admin.validate.LegalSensitiveWordSearchValidate;
import com.mdd.admin.vo.LegalSensitiveWordListedVo;
import com.mdd.admin.vo.LegalSensitiveWordDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 敏感词列服务接口类
 * @author LikeAdmin
 */
public interface ILegalSensitiveWordService {

    /**
     * 敏感词列列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<LegalSensitiveWordListedVo>
     */
    PageResult<LegalSensitiveWordListedVo> list(PageValidate pageValidate, LegalSensitiveWordSearchValidate searchValidate);

    /**
     * 敏感词列详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return LegalSensitiveWordDetailVo
     */
    LegalSensitiveWordDetailVo detail(Integer id);

    /**
     * 敏感词列新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(LegalSensitiveWordCreateValidate createValidate);

    /**
     * 敏感词列编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(LegalSensitiveWordUpdateValidate updateValidate);

    /**
     * 敏感词列删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
